package com.tz.fruit.service.OrderService;

import com.tz.fruit.entity.Order;
import com.tz.fruit.entity.OrderItem;
import com.tz.fruit.entity.OrderStatus;
import com.tz.fruit.entity.PageBean;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/7/19.
 */
public interface OrderService {
    public List<Order> findAll();
    public  void  save(OrderItem orderItem);

    public void  deleteById(Long id);
    //查询符合条件的总条数
    public  Long  findBy(Long uid, String orderNo, Date start, Date end, OrderStatus status);
    //查询符合条件的order集合
    public PageBean<Order> getBy(Long uid, String orderNo, Date start, Date end, String pageNow, String pageSize, OrderStatus status);
    /*升序*/
    public PageBean<Order> sortup(Long uid, String orderNo, Date start, Date end,  String pageNow, String pageSize, OrderStatus status);
    /*降序*/
    public PageBean<Order> sortdown(Long uid, String orderNo, Date start, Date end,  String pageNow, String pageSize, OrderStatus status);
}
